package cn.iocoder.yudao.framework.business.comment.pojo.form;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Tag(name = "评论创建 Request VO")
@Data
public abstract class CommentSaveDTO extends SaveDTO {

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "路过")
    @NotNull(message = "评论内容不能为空")
    private String content;

    @Schema(description = "评论图片地址数组，最多上传 9 张")
    @Size(max = 9, message = "评论图片地址数组长度不能超过 9 张")
    private List<String> pictureUrls;

}
